package com.spring.shiro.main.common.result;

import java.io.Serializable;

public class Result implements Serializable{

	private static final long serialVersionUID = 5942023121308189066L;
	public static final int SUCCESS = 1;
	public static final int FAILURE = -1;
	
	private boolean success = false;
	private String msg = "";
	private Object obj = null;
	
	public boolean isSuccess() {
		return success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getObj() {
		return obj;
	}

	public void setObj(Object obj) {
		this.obj = obj;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}
	
}
